import http from "../../utils/request";
import type { Auth, AuthCode, LoginData } from "./type";

//获取验证码接口
export function getAuthCode() {


   return http.get<AuthCode>('/auth/authCode');
   
}

export function login(data:Auth) {


 return http.post<LoginData>('/administrator/checkloginByCode',data);
    
 }
 

